package com.pingxx.demo.controller;


import com.pingxx.demo.entity.Config;
import com.pingxx.demo.service.IConfigService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author pingxx
 * @since 2020-04-26
 */
@RestController
@RequestMapping("/config")
public class ConfigController {

    @Autowired
    private IConfigService configService;

    @GetMapping("getById/{id}")
    public Config getById(@PathVariable Long id) {
        return configService.getById(id);
    }

}
